package org.nerve.tinker.web.controller

import java.util.Date

import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.{ResponseBody, RequestMapping}

/**
  * Created by zengxm on 2016/7/27.
  */
@Controller
class IndexController {

  @RequestMapping(Array(""))
  @ResponseBody
  def index={
    "hello "+new Date
  }

  @RequestMapping(Array("copy"))
  @ResponseBody
  def test(data:String)={
    "your data is :"+data
  }
}
